﻿using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using CatHouse.Models;

namespace CatHouse.DAL
{
    public class PetShopContext : DbContext
    {
        public PetShopContext(): base("PetShopContext")
        {
            
        }
        //Khai báo các bảng trong database
        public DbSet<AboutModel> Abouts { get; set; }
        public DbSet<UserModel> Users { get; set; }
        
        //Tạo dữ liệu
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }
    }
}